package com.xiexie.seckill.service;

import com.xiexie.seckill.pojo.SeckillOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xiexie.seckill.pojo.User;

/**
 *  服务类
 *
 * @author xiexie
 * @date 2021-07-31
 */
public interface ISeckillOrderService extends IService<SeckillOrder> {

    /**
     * 获取秒杀结果
     *
     * @param user
     * @param goodsId
     * @return  orderId：成功   -1：秒杀失败   0：排队中
     */
    Long getResult(User user, Long goodsId);
}
